import request from "../../common/request.js"
// 首页
export function index(data) {
  return request({
    url: '/technician/detail',
    method: 'POST',
    data
  })
}

// get openid
export function getOpenid(data) {
  return request({
    url: '/login/getOpenid',
    method: 'POST',
    data
  })
}

//切换状态
export function setStatus(data) {
  return request({
    url: '/technician/update/status',
    method: 'POST',
    data
  })
}
//获取个人信息
export function getMyIndex(data) {
	console.log(data)
  return request({
    url: '/my.Index',
    method: 'POST',
    data
  })
}
// 获取消息
export function getNewList(data) {
  return request({
    url: '/technician/sysmessage',
    method: 'POST',
    data
  })
}
